<template>
  <div class="nav-bar">
    <div class="nav-left"><slot name="left"></slot></div>
    <div class="nav-center"><slot name="center">标题</slot></div>
    <div class="nav-right"><slot name="right"></slot></div>
  </div>
</template>

<script scoped>
export default {
   name: 'NavBar'
}
</script>

<style lang='less' scoped>
  .nav-bar {
    display: flex;
    top: 0;
    width: 100vw;
    height: .88rem;
    line-height: .88rem;
    text-align: center;
    z-index: 2;
    .nav-left {
      width: 1.2rem;
    }
    .nav-right {
      width: 1.2rem;
    }
    .nav-center {
      flex: 1;
    }
  }

</style>
